<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>'Toggle History',
    'type'=>'primary', // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
    'size'=>'', // '', 'large', 'small' or 'mini'
    'htmlOptions'=>array('id'=>'historyBut'),
)); ?>
<div class="recent-history">
<?php foreach ($rows as $row) {?>
<div class="alert alert-success">
<?php echo $row->historyRule;?>
</div>
<?php }?>
</div>
<script>
$(".recent-history").hide();
$('#historyBut').click(function()
		{
	$(".recent-history").slideToggle("fast");
		}
		);

</script>